//
//  LBPopItem.m
//  Pods
//
//  Created by LINAICAI on 2017/9/12.
//
//

#import "LBPopItem.h"

@interface LBPopItem()
@property(nonatomic , copy)NSString *title;
@property(nonatomic , copy)UIImage *image;
@property(nonatomic , copy)void(^action)(void);
@end
@implementation LBPopItem
+ (LBPopItem *)itemWithTitle:(NSString *)title action:(void(^)(void))action{
    return [[LBPopItem alloc]initWithTitle:title image:nil action:action];
}
+ (LBPopItem *)itemWithTitle:(NSString *)title image:(UIImage *)image action:(void(^)(void))action{
    return [[LBPopItem alloc]initWithTitle:title image:image action:action];
}
- (instancetype)initWithTitle:(NSString *)title image:(UIImage *)image action:(void(^)(void))action
{
    self = [super init];
    if (self) {
        _title = title;
        _image = image;
        _action = action;
    }
    return self;
}
@end
